from fastapi import APIRouter

from app.core.dependency import DependPermisson

from .apis import apis_router
from .base import base_router
from .depts import dept_router
from .menus import menus_router
from .roles import roles_router
from .users import users_router
from .auditlog import log_router
from .downloads import downloads_router
from .notices import notices_router

system_router = APIRouter()
system_router.include_router(base_router, prefix="/base", tags=["后端-基础模块"])
system_router.include_router(users_router, prefix="/users", tags=["后端-管理员"], dependencies=[DependPermisson])
system_router.include_router(roles_router, prefix="/role", tags=["后端-角色"], dependencies=[DependPermisson])
system_router.include_router(menus_router, prefix="/menu", tags=["后端-菜单"], dependencies=[DependPermisson])
system_router.include_router(apis_router, prefix="/api", tags=["后端-接口控制模块"], dependencies=[DependPermisson])
system_router.include_router(dept_router, prefix="/dept", tags=["后端-部门模块"], dependencies=[DependPermisson])
system_router.include_router(log_router, prefix="/auditlog", tags=["后端-日志模块"], dependencies=[DependPermisson])
system_router.include_router(downloads_router, prefix="/downloads", tags=["后端-下载模块"], dependencies=[DependPermisson])
system_router.include_router(notices_router, prefix="/notices", tags=["后端-通知模块"], dependencies=[DependPermisson])

